package main

import "fmt"

func main()  {
	ch1:=make(chan string)
	done:=make(chan bool)
	go test1(ch1,done)
	data:=<-ch1 //阻塞
	fmt.Println("子goroutine传来的：",data)
	ch1<-"我是main..." //阻塞
	<-done

}

func test1(ch1 chan string,done chan bool)  {
	ch1<-"我是小明"//阻塞
	data:=<-ch1//阻塞
	fmt.Println("main goroutine传来：",data)
	done<-true
}

